// pages/nongJiBZ/nongJiBZ.js
const app=getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
      listMessage:[]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    let url = app.globalData.URL + '/rentaldetails/queryRentaldetails';
    let data = {
    };
    app.wxRequest('GET', url, data, (res) => {
      console.log("data==>",data);
      console.log(res.data);
      this.setData({
        listMessage:res.data
      })
    }, (err) => {
      console.log(err.errMsg)
    })
  },
  xiangQing(event){
    console.log("dfsaf")
    var message=event.currentTarget.dataset.message;
    wx.setStorageSync('message', message);
    wx.navigateTo({
      url: '/pages/zujieXQ/zujieXQ',
    })
  },
  onSubmit(){
    wx.navigateTo({
      url: '/pages/faBuZJ/faBuZJ',
    })
  }
 
})